extended method for to find an link with index for class type