added error class