init send function