auto clearing of index keys