Legacy patch for declaration