fixed end-of-block marker, added ForEachLoop