s/mean/median/ thanks Julia