Unneeded function removed

And typo fixed