add some corrections to notRecognized and error methods.