fixed error message
fixed typo in method name