adding type attributes