added a merge_median sol twp