itering with hash collisions