return mean square difference not sum of squared diff