fixed up this example