fixed bug in rotation & removed xml encode/decode