added loop do to teddit script