added function to send