reindentation of the check_ping method