fixed foreach; fixed structs