adding child to c