working on the sending part