do some range check when find enum item