modify the filter encode