removed printf and changed step size