solved the multiple sending problem