add optional is delete to updateParents