updates to java file