got rid of old main method