misclassification rate needs to return a double