more changes to code samples