save to filename_r added