fixed computeD