add error process code