added pid to xml structure