minor formatting changes to save method