all loops working