analysis exception handled inside the loop