fixed computeD error