fixed a typo and removed an unnecessary line