change error handling process