optimization of stepping action