function to send to list