code sample correction