corrected typos in movement func