completed do loops

completed do loops