tweaked the example