fix func (type)