init the index of qi
qi build first complated