fixed a typo and removed leftover code.