type -> category