fix addresses and send function