oops, code was right but doc was wrong