removing the word "class" from the error message