dealing with hash collisions
removed unused functions
paving the way for proper hashing and collision handling