added missing references to parameters