second std2 template which additionally takes the mean value of the data