adding check for bad mse and acc
merging