add patch structure