modify ping.java