-added a save method