for the horizontal movement only