collision detection update