name to index