corrected the  centrality bug