added patch for entity