only set child is name is present