added export activity function