updated pe to work with search