added MergeFunction (#1)