fixed rotate formula :p