updated the java file