fixed orientation (veriables overwritten, silly error...)