work type by function

library