cleaning code.
cleaned code got rid of redundancy
Merge pull request #1 from pizzaisdavid/patch-1

Patch 1