region analysis  working