removed some spare code
fixed a typo