separate rotation and translation