Adding mad codes