foreach_space