changed unique to diversity added effective diversity calculation