added totals in index works