void bondAtoms(Object atomUid1, Object atomUid2, short order) {
		if (defaultCovalentMad == 0)
			defaultCovalentMad = viewer.getMadBond();
		Atom atom1 = (Atom) htAtomMap.get(atomUid1);
		if (atom1 == null) {
			Logger.error("bondAtoms cannot find atomUid1?:" + atomUid1);
			return;
		}
		Atom atom2 = (Atom) htAtomMap.get(atomUid2);
		if (atom2 == null) {
			Logger.error("bondAtoms cannot find atomUid2?:" + atomUid2);
			return;
		}
		// note that if the atoms are already bonded then
		// Atom.bondMutually(...) will return null
		Bond bond = bondMutually(atom1, atom2, order, getDefaultMadFromOrder(order));
		if (bond == null)
			return;
		if (bondCount == bonds.length)
			bonds = (Bond[]) ArrayUtil.setLength(bonds, bondCount + 2 * ATOM_GROWTH_INCREMENT);
		bonds[bondCount++] = bond;
		if ((order & JmolConstants.BOND_HYDROGEN_MASK) != 0)
			fileHasHbonds = true;
	}