fixed typo
remove unused code