refactored for increased readability