refactor categorys to categories