added code for inflation adjustment