adeed stuff to the main method