refactoring and multitasking