spelling and dead code