created MergeHandler class