extract -> encode.