started adding some aggregate functions.