updated getPeripheral