create seperate function to set position of movable