fixed Main.java