updating orientation