fix r helper
mg