implements issue #1
Merge pull request #2 from rhr/issue1

implements issue #1