removed unused code; turn off orientation