changed main and index