main redone