delete after iterating over with each