Revert "using mean squared error"

This reverts commit ef3123baa241d3fcbc01b56f647226cb9292b31c.