change error check