remove variable leak