updated datatables to have dynamic averages