added loopOverList