created index method