fixing up and down motion