refactoring mass create