added saving to categories