refactored best_species