graph search now working better