adds pid filter to search function