changes to java code