fixed error! method to error