delete hard-coded index