improved r regime check