implemented scaffold condition in the filters