Rescaled the values of r and h