implemented MSE