inserting as child and get child functionality done