groovyfied loop