implemented AtomicAggregateFunctions