component to index