Removed duplicate code
Merge pull request #149 from aran112000/patch-1

Removed duplicate code