some code cleanup
smaller step size