fixed median and mean