work type by function

gate structure