saveall method