fixed typo in computeD