[encoding] some modification