fix bugs and add new functions for computing accurate MSE