add FILTER switch to disable filter function