updated with new API endpoint