small refactor for readability's sake