change to xml finish