creation of main