update security filter logic