updating for r2