modify java code