use hash code