very basic working of each and parentData.