remove identical chains