removing duplicate gems