encode_completion