tested send function