fixed code samples