updated before filter