Modify variable cat to category