added loopsOut array