median filt must be done