use != instead of >= to avoid clang++ compiler warning