make_indices script