replace repetition vector with hash table