added limit to get_latest_analysis