tested multiple species and added error handling