refactoring for autorotation