modify the response xml function