ok, seems like we need explicit arrays here... also - that foreach isn't
strictly necessary, I think.