add median_maintenance