change before filter to be whitelisting