rename getTypeSet function => typeSet