fixed issue 8
Merge pull request #20 from adisa/master

fixed issue 8