still working on the PrepareMerge subroutine