fixed the java file