fix bug w/ input being read as string and not an int