made taking care of hash collisions more explicit