added previous change to the actual main method