updated difference filter