encode change