started main method