the loop is done