add assert to search reason