changes to send logic