remove override of encode