adding periodic folding for field