improved the median notes