added patch for type in type
added doc