fixing species function in family