Collision Detection functions additions