handle output orientations