saves editable variable for all types of media