remove superfluous variables