fixed lambda length issue in computeD