added function to reindex list

new function to reindex list synchronizes any changes made to values in
the list after the list was initiated