patch for last entry