update to the code samples