mutability - refactoring