got the program running for about half the time until I hit exceptions