add term distance