fixes issue #28
Bringing it upto master
Merge pull request #35 from rahul2308/master

fixes issue #28