merge frequencies