better collision detection measurement