comparing with integer code