replaced calls to  with  to produce flat message arrays