add aggregateBy function and table shows zero as 0