debugging orientation works