modify error handle