pr05 added median filter