var merging and collision detection :boom: