removed unnecessary require
typo
working encoder