start of main added