moved error class