renaming and expanding scope, finally using the merge() pattern