fixed bug where number could collide with itself