added send functionality