fixed typo
removed useless code