extract methods for readability
refactor: extracting methods for clarity