add type field to sources