model.type -> name etc