error handling code update