add saving method