checkInt changed to inputInt