BTW, since you didn't specify what transmission you're talking about, I thought I'd point out that a 2004R (the most discussed trans in this forum) doesn't have a modulator. It uses a cable for load sensing.
Replacing a modulator on a transmission so equipped usually involves removal of a single bolt that retains a hold-down bracket. Also make sure that the vacuum line leading to the modulator isn't kinked or leaking.