fix edge case with shadowed argument variables