modified joints.php to match david