define valid regions in a way that can be imported elsewhere