restore median color