implementation of periodic_update_index()