get recent activities functions