converting rotation to linear movement or vice-versa