fix code sample initialization