modify risk calc