before filter for all