implementing loop-for-each