added code to make the overlapping communities work