remove extraneous assignments