Removed useless code/commetns

-rmoved code
-changed loop