complete search by condition