delete intermediate containers to avoid leaking space