my bad, didnt change counter's name inside the loop