change format keyword to region in constraint