Stepper motor losing its position

michinyon i think you are right

the motor stalls when ever the steps go above 500 for 60 RPM

also the motor stalls for 500 steps at 120RPM but it does not stall at 60RPM :~

what can i do to overcome this?? do i have to change something in the stepper library to make it work?