r_  -> reg_

change writeout filename