minimization.rb duplicates removed