added options to the save() method