eliminate use of removed variable