add type patch