pseudocode comments for search results filter event