region labeling FIXED!