split up the send method and