removed useless ping code
restored to last working code