putting the parseInt on the value earlier and printing out status messages for testing