compute u as quaternion finished