adding type to table