looping example - fix github issue