modification java and php