starting on save functionality