cleaned the main method