removed code from qsearch for taking checks into account: it seems it is buggy