this closes #2
Merge pull request #3 from ndelage/fix_issue

fix bug #2