extract the activities