change index -> globals in _harp