rotation equation fix