turn lists to arrays before sending