typed all foreaches