refactor feed filtering