added calculations for Carl.