remove orientation-related code