For loop into a function

Why are these initialized to 1 and 3? You really don't need them both the way you have it coded.