import valid_regions instead of duplicating it