changed the comment for the attachjoints function