start of main