small patch for repeats