tried to fix the categories + added write