enhance collision detection