RM3889
- encapsulate logic into method for better readability