making sure that the totals are calculated for children as well