clean up body when editing