add patch swap