changed how enum is saved