"merge" method