add graphic, some change on encoding