simplify BuildIndex
=(