add foreach and clear to transmittable