implemented save and send