inverse quaternion amelioration