work type by function

mint