encode process changed