refactoring poi filter (backend)