ajusted the size calculation on message.