Improving the accuracy of community detection methods using connectivity modifier