log the exception
introduced a new variable