got to save categories correctly