delete errmsg debug