fixes issue 20
Merge pull request #21 from sdangi/issue20

fixes issue 20