updated formula of movement
updated formula of movement