modification to allow for incremental merging included