modify Median