first step to index