refactoring activities