made getOrientation  a public method