moved the ints out of caughtBug to make it a bit faster.