ping function did not work