What about renaming w to rval or p? w seems ambiguous to me, even if not capitalize.