update beforeFilter