foam stabilization techniques