fixed foreach params