Trying to fix the bug -- see the merge() function John