remove extraneous variable declarations