use integer comparison rather than string