fixed foreach loop call back to original