shouldn't this be `var r`?