add the function to merge R01, R02, R03