fix orientation stuff