added child procesisng logic