update variables-save method to use new feature