add type field