computing diversity score is now optional