for preventing overflow of the filled container