testing connected component search. not working currently