made sum() and prod() aggregating