better and proper way to infer orinentation