added metrics and aggregate functions by imperial