rewriting orientation corrections