code sample fix