added send function