changed main.java