Merge pull request #30 from dbanda/master

insert explicit for loop for compatibility