changed isInteger to private