add the modify of haystack