adapt example for searches