try catch for all parseInt and variable renaming