slight change to forEach extension