updates code sample