make sure the orientation is actually valid