added limit to getActivities