implemented getTaggedActivities function