collect data from the nested elements and reflect it ot the parent