fixed median instead of average