prepare merging