leader function update for bde format