fix code samples