updated sending function