main and main2 added