modify error class