test loops added