update variable for xml response too