fixing ping example