Refactoring the assignment for clarity and effectiveness