added averagestats view