update get median