fix to for loops warnings