updated refactoring instructions