fixed spurious variable