make some changes in pci functions