now doing everything with lists for handling collisions