correct quaternion math