c++ rotation stuff added