error handler function reset to cover additional errors