added min, max, and median to aggregate options