remove gem repetition