added RR measure and save txt