updated message_size and count