code sample updates