merging clustering pipelines