final setup for orientation.