working on the save functionality.