implement totals response