update code samples