change to one week minimum to rebuild index and add skip code to inner loop