update filter freq logic