break added to iterate in list atdiscard correctly