logic for parents and children return values