add changes to the calculation of cohesion