update the initialization of r