added findcommunities2() function