second patch for swift