added collisions handling and destroying queue