add search conditions for caterpillars