simplified save record logic