now the restriction on the message length is imposed correctly