bugfixes, and now finally i get a correct MSE=0