adding type processing