added changes for graph search now