using mean square error for model1