updated another code sample