update ld calculation