added median color