order isn't important, only we need id, here index, for each distinct signature pattern.