How to scatter on input parameters