improve message size assert