using mean intead of sum to pick the best model