fixed cpa for each loop.. much better now