ballmer-peak: use composition instead of mutable state
fix: var name
Merge pull request #2330 from alexeyraspopov/patch-1

use function composition instead of mutable state