Cannot operate on active collection in the foreach loop, instead used temp variable list to tmp catch result.