everything compiles, `foreach` doesn't work