small refactoring
Merge pull request #3 from eugenekorpan/small_refactoring

small refactoring