fixed a typo and removed code that is no longer needed