modeling the kinematics