basic send function