Fixed typo
Deleted unused code