wire functionality