change ping method