added mean, stdev, median, sumfunc