update to main.java