searchWhole implemented