flush  after loop