my experiment: only save at very end