setting up main