added David's changes to rigid body section