change to using array and sending all as one piece