insert explicit for loop for non compatibility
Merge pull request #30 from dbanda/master

insert explicit for loop for compatibility