implemented the multisend functionality