modified the java code