correcting out some variables