foam-safe method