update aggregate functions easily