correct the context dependent rates in the schedule code