modify code encode