remove superfluous code; correct spelling error