rename top to index