added structure for graph search