just use hash for speed.