You're setting this value twice. Here and in the for loop