extract region script added