removed len function from aggregations