typo fixed
removed useless code