updated condition_for_rrr line