use the snippet provided by google