pull out send function