minor changes to isInteger