changing the order of indexing processe, to minimizing work