small refactor do clarify the code intents