fixing RMSE formulae