old statistics code with ANOVA