changed collision to something that isn't 0(n2)