update parent name and child atribute