set units for r correctly when cosmology changes