updating code samples