fix test failure in program due to variable renaming