beginning of species richness script