write out activity