fixes #167 code sample broken