remove duplication
Merge pull request #3 from marcosvm/marcosvm/DRY

remove duplication