improved collision detection (much more performance!)