Revert "Fix typo and remove unused method"

This reverts commit d8f5c786aa8b8448aeff5cf0f0881d809fffbb9a.
Fix typo