Revert "corrected int initilization in for loop"

This reverts commit 616ffb4bcfd7c24e8fbd4d19b45532d24ebf42fb.
fix