end all loops with the same keyword