Envelope shaper