fix to #111, removed redundant code.
Merge pull request #124 from sumansai14/master

fix to #111, removed redundant code.