forgot to catch NumberFormatExceptions when parsing ints