remove random pattern shift
use a function to return stepSize