delete main method