format auto main