cleaned up MergeJoin