smaller spelling error plus making CustomEncoder work