work type by function

palace