updated send method