update the java code, add/remove some fields