added changes to move right or left