revise error class