heater box foams

So once the core is screwed in place, install the long foam piece right on the edge? What about the short piece of foam?