docs for child and parent