changed the send method