set all the proper indexes