make index global