changed ping check