updating bn code