update before filter