pingpong snippet