save changes to main category files