new 9dof code