refactor: consistent in order of comparing improve readability