tidying of index