removing debug info
removing extraneous loop