fix duplicate computeD