removed junk values from the loop.