update method and error class name