fix the example so it works