made all the bonding use variables