refactor append activity (public to private)