rename tmp variable to checkFilter