swap shp index