revise list filter logic.