duplicate code removed
Merge pull request #54 from GunpreetAhuja/dirty

duplicate code removed