simplify the aggregate function in artistscontroller