renamed variables to match the KWL context