fixed main and index