add consistent hash code