remove unneeded before filter