add the "sum" function to datasets