work type by function

public bath