refactored code -> easier code