added type field