added a put to guage how many times it looped through