rename frame to index