removed median filter