refactored getOrientation method