removed unused variable orientation