adding DONE! statement outside loop completely