inline foreach loops