modifed the connectivity score measure