code samples updating