extract check_ratio_at_cap. more commentary