minimal collision detection