added index link, started collision detection method