added looptime