support var in foreach search
we cant delete in foreach variable