slight reworking of bd metric