fixed error with step of 2