simplify implementation
Merge pull request #4 from jdegoes/master

simplify implementation