Update filter logic