use calloc in MessageBuilder