working on the save method