fixing code samples