format the send method