init to index