encode changed