improved collision detection performance